package com.bite.www;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-11-17
 * Time: 17:13
 */
public class Test {
    public static void main(String[] args) {
        Shape[] shapes={new C(),new Rect(),new C()};
        for (Shape x:
             shapes) {
            x.draw();
        }
        for (int i = 0; i < shapes.length; i++) {
            shapes[i].draw();
        }

    }
}
